import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Form, FormItem, Input, Button, Message, Upload, Loading, Select, Option, Steps, Step, Table, TableColumn, Switch, Popover, Pagination, Notification } from 'element-ui';
import '../node_modules/element-ui/lib/theme-chalk/index.css';
import globalFunc from '@/methods/globalFunc'

Vue.use(globalFunc)

Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Button)
Vue.use(Upload)
Vue.use(Loading)
Vue.use(Select)
Vue.use(Option)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Pagination)
Vue.use(Popover)


Vue.config.productionTip = false
Vue.prototype.$message = Message
Vue.prototype.$notification = Notification

// 全局过滤器
Vue.filter('currecy', function (value) {
  if (value % 1) {
    return '￥' + value
  } else {
    return '￥' + value + ".00"
  }

})
Vue.filter('tabelCur', function (value) {
  if (value % 1) {
    return value
  } else {
    return value + ".00"
  }

})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
